#include<bits/stdc++.h>
using namespace std;

int main()
{
	string str;
	cin >> str;
	int x=0, y=0;
	for(int i=0; i<str.size(); i++)
	{
		if(str[i]-'a'==0 || str[i]-'a'==4 || str[i]-'a'==8
		|| str[i]-'a'==14 || str[i]-'a'==20)
			x++;
		else
			y++;
	}
	cout << x << endl << y << endl;	
	return 0; 
} 